import axios from '@/utils/api.request'

var currentPage={
    getIndex(){
		var that = this;
		setTimeout(function(){
			var pageIndex = axios.request({
			    url: '/get_TalentMonitor_PopularPosts',
			    method: 'get'
			})
			if (pageIndex !=0 && pageIndex != '0'){
				window.location.href="http://data.jywj12333.com:8086/#/wj"+pageIndex+"/index"
			}else{
				getIndex.getIndex();
			}
		}, 1000);
	}
}
export default currentPage;